﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Microsoft.Practices.Unity;

namespace Derbster.Domain
{
    public static class UnityContainerFactory
    {
        public static Func<IUnityContainer> CreateFunc { get; set; }

        public static IUnityContainer Create()
        {
            return CreateFunc != null ? CreateFunc() : new UnityContainer();
        }
    }
}
